home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2002-01-01 | 2.9 KB | 95 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="9"
- "COUNT"="1"
- "UIPATH 1"="Appearance\Start menu\Windows XP\Classic Start Menu"
- "NAME"="Cascaded System Items"
- "VERSION"="3.01"
- "OSVERSION"="000001"
- "LANGUAGE"="VBScript"
- "TEXT 1"="nanan"
- "DESCRIPTION 1"="These settings control if the system items inside your Start menu should cascade or not."
- "DESCRIPTION 2"="Cascade means: make the items behave like menus with submenus instead of just opening the related folder. "
- "DESCRIPTION 3"="NOTE: These settings will have no effect if you use the new (two columns) display of the Start Menu in Windows XP."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com/"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Thanks to Pierre and CptSiskoX for the settings and the idea."
-
-
-
- sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\CascadeMyDocuments"
- sV2="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\CascadeMyPictures"
- sV3="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\CascadeNetworkConnections"
- sV4="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\CascadeControlPanel"
- sV5="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\CascadePrinters"
-
-
- SUB Plugin_Initialize
- Call SetUIElement(1,"Cascade 'My Documents' inside Start Menu")
- s=RegReadValue(sV1)
- If s="YES" or IsEmpty(s) then SetUIElementEx 1,true
-
- Call SetUIElement(2,"Cascade 'My Pictures' inside Start Menu")
- s=RegReadValue(sV2)
- If s="YES" or IsEmpty(s) then SetUIElementEx 2,true
-
- Call SetUIElement(3,"Cascade 'Network and Dial-Up' inside Start Menu")
- s=RegReadValue(sV3)
- If s="YES" or IsEmpty(s) then SetUIElementEx 3,true
-
- Call SetUIElement(4,"Cascade 'Control Panel' inside Start Menu")
- s=RegReadValue(sV4)
- If s="YES" or IsEmpty(s) then SetUIElementEx 4,true
-
- Call SetUIElement(5,"Cascade 'Printers' inside Start Menu")
- s=RegReadValue(sV5)
- If s="YES" or IsEmpty(s) then SetUIElementEx 5,true
- END SUB
-
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElementEx(1)
- if b=true then
- Call RegWriteValue(sV1,"YES",1)
- else
- Call RegWriteValue(sV1,"NO",1)
- end if
-
- b=GetUIElementEx(2)
- if b=true then
- Call RegWriteValue(sV2,"YES",1)
- else
- Call RegWriteValue(sV2,"NO",1)
- end if
-
- b=GetUIElementEx(3)
- if b=true then
- Call RegWriteValue(sV3,"YES",1)
- else
- Call RegWriteValue(sV3,"NO",1)
- end if
-
- b=GetUIElementEx(4)
- if b=true then
- Call RegWriteValue(sV4,"YES",1)
- else
- Call RegWriteValue(sV4,"NO",1)
- end if
-
- b=GetUIElementEx(5)
- if b=true then
- Call RegWriteValue(sV5,"YES",1)
- else
- Call RegWriteValue(sV5,"NO",1)
- end if
-
-
- 'Call Logoff
- Call IndicateSettingChange()
- END SUB
-
- SUB Plugin_Terminate
- END SUB
-